package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Author Justin Parker
 * @Date 2024/8/3 0003 15:25
 * @Version 1.0
 */

/**
 * Mapper注解
 * 1.MyBatis框架的注解，为该接口创建实现类
 */
@Mapper
public interface UserMapper {

//    @Insert("insert into user(username,password,nickname,created) values(#{username},#{password},#{nickname},#{created})")
    int insertUser(User user);
}
